home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
5
/
MONIKER_
/
SOURCE__
/
MONIKER_.C
next >
Wrap
C/C++ Source or Header
|
1992-06-09
|
790b
|
40 lines
/* Moniker 2.0 */
/* Copyright ⌐1992 by Michael J. Simms */
/* Include the program header. */
#include "Moniker 2.0.h"
/* Function prototypes. */
int main(void);
/* Global variable. */
Boolean gQuitDemand=FALSE;
main(void)
/* The driver - head honcho. */
{
Boolean gotEvent,canRun;
EventRecord event;
/* Call initialization routine. */
initialize();
/* See if the program can run. */
canRun=canRunProgram();
/* If the program can run then do so. */
if (canRun) {
/* Install Apple Event handlers. */
installAEHandlers();
/* Main loop. */
do {
if (gotEvent=WaitNextEvent(highLevelEventMask,&event,kSleep,NIL))
AEProcessAppleEvent(&event);
} while (!gQuitDemand);
/* Remove Apple Event handlers. */
removeAEHandlers();
} else describeError(kCantRun);
}